
using FriendStar.Domain.Entity.WareHouse;
using FriendStar.Domain.IRepository.WareHouse;
using FriendStar.Repository.WareHouse;
using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugarRepository;

namespace CopyrightFriendStar.Application.WareHouse
{
    public class CYK_13_ML_StoLJKConAcco_MidApp
    {
        private ICYK_13_ML_StoLJKConAcco_MidRepository service = new CYK_13_ML_StoLJKConAcco_MidRepository();

        public List<CYK_13_ML_StoLJKConAcco_MidEntity> GetList()
        {
            return service.IQueryable().ToList();
        }
        public CYK_13_ML_StoLJKConAcco_MidEntity GetForm(string keyValue)
        {
            return service.FindEntity(keyValue);
        }
        public void DeleteForm(string keyValue)
        {
            
        }
        public void SubmitForm(CYK_13_ML_StoLJKConAcco_MidEntity CYK_13_ML_StoLJKConAcco_MidEntity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                service.Update(CYK_13_ML_StoLJKConAcco_MidEntity);
            }
            else
            {
                service.Insert(CYK_13_ML_StoLJKConAcco_MidEntity);
            }
        }
    }
}
